package com.cr.admin.business.news.dao.repository;

import com.cr.admin.business.news.pojo.entity.News;
import com.cr.admin.business.news.pojo.param.NewsCreateParam;
import com.cr.admin.business.news.pojo.param.NewsSearchParam;
import com.cr.admin.business.news.pojo.query.NewsQuery;
import com.cr.admin.business.news.pojo.vo.NewsCategoryVO;
import com.cr.admin.business.news.pojo.vo.NewsDetailsVO;
import com.cr.admin.business.news.pojo.vo.NewsListVO;
import com.cr.admin.business.news.pojo.vo.NewsStatusVO;

import java.util.List;

public interface NewsRepository {
    List<News> selectList(NewsQuery newsQuery);

    List<NewsCategoryVO> selectCategory();

    List<NewsStatusVO> selectNewsStatus();

    NewsDetailsVO selectDetailsById(Integer id);

    void saveCreate(NewsCreateParam param);

    void deleteByIds(List<Long> ids);

    void sendNews(int id);
}
